package com.example.myapplication;

import android.app.Application;
import android.content.Context;

import com.example.myapplication.database.DBManager;

/**
 * 表示全局应用的类
 */
public class InitApp extends Application {
    public Context context;
    @Override
    public void onCreate() {
        super.onCreate();
        //初始化数据库
        DBManager.initDB(getApplicationContext());
    }
    public Context getContext(){
     return    context=getApplicationContext();
    }
}
